﻿using System.Collections.Generic;
using IDAL;
using Model;

namespace BLL
{
    public class ZTEPIMAndPower : BaseService<ZTEPIMAndPowerInfo>
    {
        private static readonly IZTEPIMAndPower dal = DALFactory.DataAccess.CreateZTEPIMAndPower();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public ZTEPIMAndPowerInfo GetZTEPIMandPowerbyPIDTTTI(string productTypeID, string testType, string testItem)
        {
            return dal.GetZTEPIMandPowerbyPIDTTTI(productTypeID, testType, testItem);
        }

        public IList<ZTEPIMAndPowerInfo> GetZTEPIMbySN(string productSN)
        {
            return dal.GetZTEPIMbySN(productSN);
        }

        public IList<ZTEPIMAndPowerInfo> GetZTEPowerbySN(string productSN)
        {
            return dal.GetZTEPowerbySN(productSN);
        }
    }
}
